method of separation of variables problems